type {{.upperStartCamelObject}}FindOneBy{{.upperField}}Params struct {
	{{.in}}
	*TxID
}

type {{.upperStartCamelObject}}FindOneBy{{.upperField}}Result struct {
	*{{.upperStartCamelObject}}
}

type {{.upperStartCamelObject}}FindOneBy{{.upperField}}Func struct {
	Db sqlx.SqlConn
	Repo po.{{.upperStartCamelObject}}Model
	{{.upperStartCamelObject}}FindOneBy{{.upperField}}Params
	{{.upperStartCamelObject}}FindOneBy{{.upperField}}Result
}

func (t *{{.upperStartCamelObject}}FindOneBy{{.upperField}}Func) Name() string {
	return fmt.Sprintf("%s.%s", "{{.table}}", "FindOneBy{{.upperField}}")
}

func (t *{{.upperStartCamelObject}}FindOneBy{{.upperField}}Func) ServeJSONRPC(c context.Context, params *json.RawMessage) (result any, err *jsonrpc.Error) {
	logc.Infof(c, "%s( %s )", t.Name(), *params)
	m := makeMockData()
	r := {{.upperStartCamelObject}}FindOneBy{{.upperField}}Result{m}
	return r, nil
}

func (t *{{.upperStartCamelObject}}FindOneBy{{.upperField}}Func) Params() any {
	return t.{{.upperStartCamelObject}}FindOneBy{{.upperField}}Params
}

func (t *{{.upperStartCamelObject}}FindOneBy{{.upperField}}Func) Result() any {
	return t.{{.upperStartCamelObject}}FindOneBy{{.upperField}}Result
}
